package com.controllers.forms;

import org.springframework.web.multipart.MultipartFile;

public class UploadFileForm {
    private String relatedInfo;
    private MultipartFile file;
    private String returnUrl;
    private String filename;
    private String type;

    public String getRelatedInfo() {
        return relatedInfo != null ? relatedInfo : "";
    }

    public void setRelatedInfo(String relatedInfo) {
        this.relatedInfo = relatedInfo;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
